import { styled } from 'styled-components';

export const RankingItemWrapper = styled.div`
  width: 230px;
  &:last-child {
    width: 228px;
  }
  position: relative;
  .rank-top {
    height: 100px;
    padding: 20px 0 0 19px;
    display: flex;
    .img {
      .imgCover {
        background-position: -145px -57px;
        position: absolute;
        width: 80px;
        height: 80px;
        left: 19px;
      }
    }
    .detail {
      margin: 6px 0 0 10px;
      > a {
        h3 {
          font-size: 14px;
          color: #333;
        }
      }
      .icon {
        height: 22px;
        margin-top: 15px;
        a {
          display: inline-block;
          width: 22px;
          height: 22px;
          margin-right: 10px;
        }
        .f-a {
          background-position: -267px -205px;
          cursor: pointer;
          &:hover {
            background-position: -267px -235px;
          }
        }
        .s-a {
          background-position: -300px -205px;
          &:hover {
            background-position: -300px -235px;
          }
        }
      }
    }
  }
  .list {
    .track {
      height: 32px;
      margin-left: 15px;
      > span {
        font-size: 16px;
        display: inline-block;
        text-align: center;
        line-height: 32px;
        width: 35px;
        height: 32px;
      }
      &:nth-child(-n + 3) {
        color: #c10d0c;
      }
      > a {
        display: inline-block;
        width: 170px;
        font-size: 12px;
        color: #000000;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }
      &:hover {
        .oper {
          visibility: visible;
          width: 82px;
          height: 17px;
          margin-top: 7px;
          > a {
            display: inline-block;
            width: 17px;
            height: 17px;
            margin-right: 10px;
          }
        }
        > a {
          width: 96px;
        }
      }
      .oper {
        visibility: hidden;
        float: right;
        .play {
          background-position: -267px -268px;
          &:hover {
            background-position: -267px -288px;
          }
        }
        .addList {
          background-position: 0px -698px;
          &:hover {
            background-position: -22px -698px;
          }
        }
        .favorite {
          background-position: -297px -268px;
          &:hover {
            background-position: -297px -288px;
          }
        }
      }
    }
  }
  .more {
    float: right;
    margin-right: 25px;
    line-height: 32px;
    > a {
      color: #333;
    }
  }
`;
